home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / host / RCS / Host_Stat.c,v < prev    next >
Encoding:
Text File  |  1990-11-01  |  1.4 KB  |  75 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.10.31.22.35.06;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/* 
  26.  * Host_Stat.c --
  27.  *
  28.  *    Does a "stat" on the host database and returns the stat structure.
  29.  *
  30.  * Copyright 1990 Regents of the University of California
  31.  * Permission to use, copy, modify, and distribute this
  32.  * software and its documentation for any purpose and without
  33.  * fee is hereby granted, provided that the above copyright
  34.  * notice appear in all copies.  The University of California
  35.  * makes no representations about the suitability of this
  36.  * software for any purpose.  It is provided "as is" without
  37.  * express or implied warranty.
  38.  */
  39.  
  40. #ifndef lint
  41. static char rcsid[] = "$Header: /sprite/lib/forms/RCS/proto.c,v 1.3 90/01/12 12:03:36 douglis Exp $ SPRITE (Berkeley)";
  42. #endif /* not lint */
  43.  
  44. #include <stdio.h>
  45. #include <host.h>
  46. #include <hostInt.h>
  47. #include <sys/types.h>
  48. #include <sys/stat.h>
  49.  
  50.  
  51. /*
  52.  *----------------------------------------------------------------------
  53.  *
  54.  * Host_Stat --
  55.  *
  56.  *    Stat the host database.
  57.  *
  58.  * Results:
  59.  *    0 if successful, -1 otherwise and errno is set.
  60.  *
  61.  * Side effects:
  62.  *    None.
  63.  *
  64.  *----------------------------------------------------------------------
  65.  */
  66.  
  67. int
  68. Host_Stat(statPtr)
  69.     struct stat    *statPtr;    /* Place to store stat results. */
  70. {
  71.     return stat(hostFileName, statPtr);
  72. }
  73.  
  74. @
  75.